@font-face {
    font-family: "FiraCode";
    src:
        local("FiraCode"),
        url(./assets/fonts/MyFont.woff) format("truetype");
}

.editor a {
    color: #0000ee;
}

.dark .editor a {
    color: rgb(152, 152, 243);
}
.editor a:hover {
    cursor: pointer;
}

.bn-container[data-color-scheme="dark"] {
    --bn-colors-editor-background: #18181b !important;
}

.bn-default-styles {
    font-family: unset !important;
    font-size: unset !important;
}

.bn-container {
    font-family: unset !important;
    font-size: unset !important;
}

.bn-inline-content code {
    background-color: rgba(127, 127, 127, 0.1);
    border: 1px solid rgba(127, 127, 127, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: "FiraCode", monospace;
    font-size: 0.9em;
    color: currentColor;
}

.bn-container > div[data-floating-ui-focusable] {
    left: -1rem !important;
}

.bn-block-group {
    margin-left: 1rem !important;
}

/* Heading indentation */
.bn-block-group .bn-block-outer .bn-block .bn-block-content[data-content-type="heading"] {
    margin-left: -1rem !important;
}

/* Extra space above headings (not the first block) - use padding on block-outer
   so the floating UI aligns with the content, not the spacing */
.bn-block-group .bn-block-outer:not(:first-child):has(.bn-block-content[data-content-type="heading"]) {
    padding-top: 0.5em !important;
}
.bn-block-group .bn-block-outer:has(.bn-block-content[data-content-type="paragraph"]) {
    margin-top: 0.25em !important;
}
